﻿<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
<meta http-equiv="X-UA-Compatible" content="IE=edge" />
<link href="/resource/css/admin/main.css" type="text/css" rel="stylesheet" />
<link href="/resource/css/admin/right.css" type="text/css" rel="stylesheet" />
<script type="text/javascript" src="/resource/js/jquery.js"></script>
<script type="text/javascript" src="/resource/js/base.js"></script>
<script type="text/javascript" src="/resource/js/admin/gatherprojectedit.js"></script>
</head>
<body>
    <div class="position"><span>您的当前位置：</span>：系统设置 > <a href="./">采集项目管理</a> > ${(gather.id == 0)?string("新建","修改")}项目</div>
	<form method="post" action="editdo" onsubmit="return checkform()">
		<div class="rightbody m">
			<div class="rightbodycontent">
				<table cellspacing="1" cellpadding="4" class="tableedit">
					<tr>
						<td>项目名称：</td>
						<td>
							<input type="text" name="name" id="name" value="${gather.name!}" style="width:200px;" /> <span style="color:red">*</span>
						</td>
					</tr>
					<tr>
						<td>目标URL：</td>
						<td>
							<input type="text" name="targeturl" id="targeturl" value="${gather.targeturl!}" style="width:600px;" /> <span style="color:red">*</span>
						</td>
					</tr>
					<tr>
						<td>页面编码：</td>
						<td>
							<label><input type="radio" name="encode" value="UTF8"<#if !gather.encode?? || gather.encode == "UTF8"> checked</#if>>UTF8</label>
							<label><input type="radio" name="encode" value="GB2312"<#if gather.encode?? && gather.encode == "GB2312"> checked</#if>>GB2312/GBK</label>
						</td>
					</tr>
					<tr>
						<td>数据区域规则：</td>
						<td>
						    <textarea name="regexlist" id="regexlist" rows="3" cols="140">${gather.regexlist!}</textarea> <span style="color:red">*</span>
						</td>
					</tr>
					<tr>
						<td>列表链接规则：</td>
						<td>
						    <textarea name="regexlinkurl" id="regexlinkurl" rows="3" cols="140">${gather.regexlinkurl!}</textarea> <span style="color:red">*</span>
						</td>
					</tr>
					<tr>
						<td>详细页面规则：</td>
						<td>
						    <textarea name="regexdetail" id="regexdetail" rows="3" cols="140">${gather.regexdetail!}</textarea> <span style="color:red">*</span>
						</td>
					</tr>
					<tr>
						<td>采集外部链接：</td>
						<td>
							<label><input type="radio" name="outlink" value="true"<#if !gather.outlink?? || gather.outlink> checked</#if>>是</label>
							<label><input type="radio" name="outlink" value="false"<#if gather.outlink?? && !gather.outlink> checked</#if>>否</label>
						</td>
					</tr>
					<tr>
						<td colspan="2" style="text-align:left;padding-left:100px;">
							<label><b><input type="checkbox" name="autogather" id="autogather"<#if !gather.autogather?? || gather.autogather> checked</#if> onchange="changeautogather()">是否支持自动采集功能</b></label>
						</td>
					</tr>
					<tr>
						<td>指定发布栏目：</td>
						<td>
						    <#assign colfirst=true>
                            <#list columnses as columns>
                                <#if !colfirst && columns.parentId == 0><br/></#if>
                                <#if columns.parentId == 0><b></#if>
                                <label<#if columns.columnsType.id != 1> onclick="alert('非文档列表类型栏目不可选择')"</#if>><input type="checkbox"<#if columns.columnsType.id == 1> name="columnsids" value="${columns.id}"</#if><#if columnsids?seq_contains(columns.id)> checked</#if><#if columns.columnsType.id != 1> disabled</#if> />${columns.name}</label>
                                <#if columns.parentId == 0></b></#if>
                                <#assign colfirst=false>
                            </#list>
                            <#if zhuantis?size gt 0>
                                <#list zhuantis as zhuanti>
                                    <br />&nbsp;<b>${zhuanti.name}：</b>
                                    <#list columnsForZhuanties as columns>
                                    	<#if columns.zhuanti.id == zhuanti.id>
                                        	<label><input type="checkbox" name="columnsids" value="${columns.id}"<#if columnsids?seq_contains(columns.id)> checked</#if> />${columns.name}</label>
                                        </#if>
                                    </#list>
                                </#list>
                            </#if>
						</td>
					</tr>
				</table>
				<input type="hidden" name="gatherid" value="${gather.id}" />
			</div>
		</div>
		<div class="rightfoot">
			<div class="rightfootcontent">
				<input type="button" value="返 回" class="return" onclick="history.back()" />&nbsp;
	            <input type="submit" value="保 存" class="save" />
            </div>
        </div>
	</form>
</body>
</html>